﻿<%@ Page Language="C#" MasterPageFile="~/HR/HRMasterPage.master" AutoEventWireup="true" CodeFile="job-add-edit.aspx.cs" Inherits="HR_job_add_edit" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="block">
    <div class="secondary-navigation">
                    <ul class="wat-cf">
                        <li class="active first"><a href="job-post.aspx">Back</a></li>
                    </ul>
                </div>
        <div class="content">
        <h2 class="title">
            <asp:Label ID="lblTitle" runat="server" Text=""></asp:Label></h2>
            <div class="inner">

    <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" > </cc1:ToolkitScriptManager>
    <div>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowSummary="true"
            HeaderText="Please complete the form" DisplayMode="BulletList" />
    
    <div class="content-row"><label class="left">Job Title</label>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ErrorMessage="Job Title" ControlToValidate="txtJobTitle" Text="*"></asp:RequiredFieldValidator>
            <br /><asp:TextBox ID="txtJobTitle" runat="server" Width="100%"></asp:TextBox>
    </div>
    <div class="content-row"><label class="left">Job Description</label>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ErrorMessage="Job Description" ControlToValidate="txtJobDescription" Text="*"></asp:RequiredFieldValidator>
    <br /><asp:TextBox ID="txtJobDescription" runat="server" Width="100%" Height="200px" TextMode="MultiLine" Font-Names="Arial"></asp:TextBox>
    </div>
    <div class="content-row requirement2"><label class="left">Responsibilities</label>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
            ErrorMessage="Responsibilities" ControlToValidate="txtResponsibilities" Text="*"></asp:RequiredFieldValidator>
    <br /><asp:TextBox ID="txtResponsibilities" runat="server" Width="100%" Height="200px" TextMode="MultiLine" Font-Names="Arial"></asp:TextBox>
        <cc1:HtmlEditorExtender ID="HtmlEditorExtender1" runat="server" TargetControlID="txtResponsibilities" EnableSanitization="false">
        <Toolbar>
        <cc1:Bold />
        <cc1:Italic />
        <cc1:Underline />
        <cc1:InsertUnorderedList />
        <cc1:RemoveFormat />
        </Toolbar>
        </cc1:HtmlEditorExtender>
    </div>
    <div class="content-row requirement2"><label class="left">Requirements</label>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
            ErrorMessage="Requirements" ControlToValidate="txtRequirements" Text="*"></asp:RequiredFieldValidator>
    <br /><asp:TextBox ID="txtRequirements" runat="server" Width="100%" Height="200px" TextMode="MultiLine" Font-Names="Arial"></asp:TextBox>
    <cc1:HtmlEditorExtender ID="HtmlEditorExtender2" runat="server" TargetControlID="txtRequirements" EnableSanitization="false">
        <Toolbar>
        <cc1:Bold />
        <cc1:Italic />
        <cc1:Underline />
        <cc1:InsertUnorderedList />
        <cc1:RemoveFormat />
        </Toolbar>
        </cc1:HtmlEditorExtender>
    
            </div>
            <br />
    <div class="content-row"><label class="left">Status</label><asp:DropDownList ID="ddlStatus" runat="server">
    <asp:ListItem Value="true">Visible</asp:ListItem>
    <asp:ListItem Value="false">Hidden</asp:ListItem>
        </asp:DropDownList>
    </div>
    <div class="content-row"><label class="left">Start Date</label><asp:TextBox ID="txtStartDate" runat="server"></asp:TextBox>
        <cc1:CalendarExtender ID="txtStartDate_CalendarExtender" runat="server" 
            Enabled="True" TargetControlID="txtStartDate" Format="dd/MM/yyyy">
        </cc1:CalendarExtender>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
            ErrorMessage="Start Date" ControlToValidate="txtStartDate" Text="*"></asp:RequiredFieldValidator>
        </div>
    </div>
    <div class="content-row"><label class="left">Closing Date</label><asp:TextBox ID="txtEndDate" runat="server"></asp:TextBox>
        <cc1:CalendarExtender ID="txtEndDate_CalendarExtender" runat="server" 
            Enabled="True" TargetControlID="txtEndDate" Format="dd/MM/yyyy">
        </cc1:CalendarExtender>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
            ErrorMessage="Closing Date" ControlToValidate="txtEndDate" Text="*"></asp:RequiredFieldValidator>
        </div>
    </div>
    
    <div class="actions-bar wat-cf" style="text-align:center;width:100%;">
    <asp:Button ID="btnSubmit" runat="server" Text="Add Post" CssClass="button"
        onclick="btnSubmit_Click" /> <asp:Button ID="btnPreview" runat="server" Text="Preview" CssClass="button"
        onclick="btnPreview_Click" OnClientClick="aspnetForm.target ='_blank';" />
        </div>
        </div>
        </div></div>
    </asp:Content>
